﻿@model bool
@{
    ViewBag.Title = "Create Banner";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="col-md-6" ng-controller="myController">
    @if (Model)
    {
        <div>Banner is added</div>
    }
    else
    {
        <h2>Create new banner</h2>

        using (Html.BeginForm("Upload", "Banner", null, FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
        <div class="form-group">
            <label for="url">Url</label>
            <input type="text" class="form-control" name="url" />
        </div>
        <div class="form-group">
            <label for="image">Image File</label>
            <input name="image" type="file" multiple="" />
        </div>
        
        <input type="submit" class="btn btn-primary submit" name="submit" value="Submit" />
        
        }
    }

    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</div>
